﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using PdxDemo.FluentValidationDemo;
using PDX;

namespace PdxDemo
{
    public class DemoPropertyModelFactory : DefaultPropertyModelFactory
    {

        protected override PDX.IValidationAdapter CreateValidationAdapter(IPropertyModel propModel)
        {
            var metadata = ViewmodelMetadata.Get(propModel);
            return new DemoValidationAdapter(metadata);
        }
    }
}
